/**
 * Created by hxpeng on 2017/3/20.
 */

(function () {
    'use strict';

    angular.module('BlurAdmin.pages')
        .run(authRun);

    /** @ngInject */
    function authRun($rootScope,$window, userAuth,BASEURL) {
        //$rootScope.$on('$stateChangeStart',
        //    function(event, toState, toParams, fromState, fromParams, options){
        //        if (!userAuth.isLoggedIn()) {
        //            event.preventDefault();
        //        }
        //        else {
        //            console.log('已登录');
        //        }
        //    })



    }

})();